package com.alibaba.api.service;


import com.alibaba.api.pojo.Account;
import org.springframework.transaction.annotation.Transactional;

public interface AccountService{

    /**
     *
     * @return
     */
    @Transactional
    boolean recharge(Long money);

    /**
     *
     * @param money
     * @return
     */
    @Transactional
    boolean withdrawal(Long money);

    /**
     * 账户信息查询
     * @param id
     * @return
     */
    Account msg(Integer id);

}
